{if $actions}
<form method="POST" action='/admin/permissions/save/'>
	<table border='1' class="contentTable">
		<tr class="table_head">
			<td>Action</td>
			<td>Allow</td>
			<td>Description</td>
		</tr>
	{foreach from=$actions item=action key=cid}	
		<tr bgcolor="{if $action->perm}#79A3C1{else}{cycle values='#ffffff,#eeeeee'}{/if}">
			<td width="200">{$action->module_name}</td>
			<td width="50"><input type='checkbox' name='actions[{$action->module_id}]' {if $action->perm}checked="true"{/if}/></td>
			<td>{$action->module_description}</td>			
		</tr>		
	{/foreach}
		<tr>
			<td colspan="3"><input type="submit" value="Save"/></td>
		</tr>
	</table>
	<input type="hidden" name="user_group_id" value="{$user_group_id}" />
	<input type="hidden" name="controller_id" value="{$controller_id}" />
</form>
{else}
	List is empty
{/if}